Fixed bug with class inheritance and attribute and view's in subclasses....

...  An included module is inserted into the inheritance chain so the proper Couchbase::Model derived ancestor was not being selected.

Mirror of: http://review.couchbase.org/#/c/24693/