Implemented mongo delete and resolve references on load
Mongo: improve handling of dereferenced fields