tdb2: more tests, hash collision fixes, attribute support.