Configured serialization for VMath classes