[mongo] Handle bulk inserts of models when an array is passed

A re-submission of the change set from #1254, which I accidentally negated with a push.