Fixing edge case with nested models or collections

This should fix a problem with mentioning Backbone.Model anywhere inside Backbone.Model.extend. It should also correctly track issues with nesting Backbone.Model/Collection/View declarations.