Enforce unsigned values for INDEXBITS template parameter.

We use shift operations on those values and they are only defined
for positive values. So better enforce this by the compiler.

Change-Id: I602bd69c6fb0dfbd843eb2d30578a4a7f29f95bb
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>