Add toHash to struct Value, fixes #36