erlang term coding improvments