relax mongoid version in generated Gemfile, closes #1802