hash: first attempt of using unions
hash: fix leak
hash: fix leak, and speed things up
hash: fix freeing elem content
hash: fix case of value is nil and key does not exist
Merge branch 'unions'

Conflicts:
	hash.lua