kludgy, incomplete fix for tree_hash

from cryptozoidberg or others, noting here in the commit message for
credit.