Fixed bugs in H2Datastore creating indexes.