Check the Array type

See https://github.com/strongloop/loopback-connector-mongodb/issues/21
Merge pull request #81 from strongloop/feature/fix-issue-21

Check the Array type