Changed method signature
Fixed bug in caching referenced classes
Added tests for references
get objects by id introduced
Small bugfix