more informative error messages for reshape and reinterpret