added subtable test, improved replacement code for to_sym function
wip: custom types