[#76] Added record definition clauses for to_map function.

i hate when i run into this bug xD