Fix std::move to std::forward where appropriate to support reference types. PiperOrigin-RevId: 292923058