Fix nil arraylist and add support for Mongoid 2.x

Hi, 
 Thanks for the gem.  I just had 2 small tweaks.  1) Add support for Mongoid 2.x by relaxing the gemspec version requirement., and 2) Handle nil value when reading array value.