Added hasType() method.

Sometime happens you have two classes with the same name but located under different namespaces. In case, you should provide a type yourself for at least one of these classes, to avoid Couch.SaveDoc() using the same type for both.