gensqlstatehashfunc: check arguments for validity
gensqlstatehashfunc: add verify functionality and 'make check' target