Fix encoding of list of elixir records

Closes #12