Fix bug populate array of object

Fix for:

```
 ... node_modules/mongoose/lib/model.js:2068
               || schema && schema.options.ref // declared in schema
                                          ^
TypeError: Cannot read property 'ref' of undefined
```