issue #7: implement dbrefs for referencesOne
issue #7: Add tests for DBRefs with referencesOne
issue #7: Get repository from set value

Value might be inherited and have different repository.
issue #7: Implemnt DBRef aware updateReferences