Try to load mConnectionPtr as long, fallback to int

https://github.com/couchbase/couchbase-lite-android/issues/373