Recognize no-op in reshape