fix(ngResource): make badcfg error message more helpful

The error message should help identify the problem. To do so, more details need to be provided.

Closes #9005
Closes #9010