fix binary version of hgetAll(), fixes #711