ENH: Allow ravel to reshape in place when possible

Closes gh-5033

Will add tests later...
What does the extra check fix?