Remove unnecessary ternary statement
Test nested collection key queries with set strategy
Refactor DocumentPersister::prepareQueryElement()

Some object calisthenic improvements to appease @guilhermeblanco.