scanner: Adapt to the special handling of primary index
scanner: Adapt to the special handling of primary index

Primary index will have keys in the form [pk] instead of
[sk, pk] for secondary indexes.

Change-Id: Iddbb1984391c259e5eb375b0010481ba50fec8c4
Reviewed-on: http://review.couchbase.org/43475
Reviewed-by: Deepkaran Salooja <94315e58ef7caa1d9829288fe30465d5fa6ccd83@gmail.com>
Reviewed-by: Sarath Lakshman <d41e430501c5d3aeeb2b91142f917f514040f807@couchbase.com>
Tested-by: Sarath Lakshman <d41e430501c5d3aeeb2b91142f917f514040f807@couchbase.com>

jchris/indexing,jchris/indexing,jchris/indexing,jchris/indexing