Fixes #260 by porting collator changes over from iOS

Also, the collation tests were not passing in the string lengths, so tests were enhanced accordingly.

https://github.com/couchbase/couchbase-lite-android/issues/260
Merge pull request #290 from couchbase/feature/issue_260_numeric_query

Fixes #260 by porting collator changes over from iOS