Removed the specialized needHash BytesValues impl which is overkill
Returned 1 as return value in setDocument when the terms are equal.