PERF: Use shallow copies/remove unnecessary copies in reshaping
In most of these cases, the axes is just modified. There is a case in `_generate_marginal_results` where I think a copy was made in order to avoid an old `SettingWithCopy` warning
Looks like tests are passing here so merging