Implement correctly the projections from a TProfile2D to TProfile and from a TProfile3D to a TProfile2D.
Add corresponding tests in stressHistogram.
This fixes bug ROOT-6220