Fix how the array of models is iterated

https://github.com/strongloop/loopback-explorer/issues/49