Check the Array type

See https://github.com/strongloop/loopback-connector-mongodb/issues/21