Some bugs related to Mongoid supports fixed