refactored object_version and object_reference tables (TODO: fix tests)
WIP