Recognize no-op in reshape (Fixes #41)