Dynamic filter mongoid bugfixes