resolves issue #188

By porting code from iOS
Merge pull request #190 from couchbase/feature/issue_188_kCBLStatusUnsupportedType

resolves issue #188