tests for dotNotation support for collections
dotNotation support for collection indexes
Add option to define `relatedModel` or `collectionType` as a function