Check the Array type

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