A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array) Fixes #2354