Fixed a bug

Missing parenthesis. Also added a comment.
Implement filtering on other Mongo objects

When one of the entries is a Mongo object, replace that entry by its
reference. Also simplified the pagination code.
Merge branch 'master' of github.com:wthielen/ZF1E