MB-12251: Throw error when range has wrong dimensionality

In case you query with a range that doesn't have the same dimensionality
as the index it throws a proper error now:

    The query range must have the same dimensionality as the index.

Change-Id: I6606753fc14e0d86cce5522f18cdf1fcbad126fa
Reviewed-on: http://review.couchbase.org/42303
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>