Fix infinite recursion bug in reorder_dims
Fix infinite recursion bug in reorder_dims


Former-commit-id: 58d0432a8f66539bb63aa94b6593a55395b92d0d [formerly 43bd628b19d51650e8348868ed887d0282e40fd3]
Former-commit-id: 70f1a2732c35e14b92d9fe3fcab38f439869ffd7
darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide