[#60] Change internal records and proplists to maps

Remove the dynamic function call on line 84. Only modules that define callbacks should make dynamic calls.