fixes for gricer to work with mongoid 3.x