Call resolve when defining Models

Very simple change that fixes the loopback tests.

/to @kraman