Fix how the array of models is iterated

https://github.com/strongloop/loopback-explorer/issues/49
Merge pull request #50 from strongloop/feature/fix-issue-49

Fix how the array of models is iterated