Port of Elixir's HashDict and HashSet to plain Erlang.