Refactor objects

I hope I haven't broken anything. Anyone wish to confirm this?
We don't really need the size of object variable from object_copy anymore. Consider modifying object_copy.