fix reconfigured RepositoryContext to avoid inserting _class within mongodb document at insert time.

fix minor refactoring