BF: Fix the dim_info after some reorientations.
TST: Added test to catch previous bug (some reorients cause wrong dim info)