fix the build for Mongoid. safe_yaml loads nil to false, which is a problem for arrays and hashes in Mongoid attributes=