Fixing mongoid support bugs