convert index type to uint64

Change-Id: If0568d6db4e1631a1a0dd7e01753165c1fa29988
Reviewed-on: http://review.couchbase.org/30771
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>