Fix up loopback.rest() model definition hack.

In its previous form, array return types were being returned simply
as {type: 'array'}, with their `items` definition forgotten.