add test reproducing infinite loop in View.updateIndex

When the final document to be indexed is a design document with
conflicts, updateIndex hangs in an infinite loop.

https://github.com/couchbase/couchbase-lite-java-core/issues/214