Faster broadcast_shape for 32+ dimensions (+ tests)