The ModuleBundle::singleton method currently performs an unnecessary clone of the input vector. Since the code parameter is already owned (Vec), theres no need to clone it before creating a new Module. This creates an unnecessary memory allocation and copy operation, which can impact performance especially when dealing with large module bytecodes.
https://github.com/initia-labs/movevm/blob/7096b76ba9705d4d932808e9c80b72101eafc0a8/crates/types/src/module.rs#L59-L63
The doesnt allign with other patterns used in other methods of the codebase (like ModuleBundle::new), which properly handle ownership without unnecessary cloning.
Add this simple test case to the module.rs file:
