Pass `export_list` by reference, not pointer.
Add options to control Lua function names.

This is so that it's easier to re-use common functions across
several output tables.
Experimental ID tracker implementation.