lock mongoid version to 4.0.0.alpha1, fix Mongoid::Errors::InvalidScope error