CBIDXT-83 Bug fixes and diagnostic messages

Change-Id: I4ff5d829b3c35dfeaa22eb497099a0ef4555cbdd
Reviewed-on: http://review.couchbase.org/38824
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Reviewed-by: John Liang <johliang00@gmail.com>
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Tested-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>