remove typedef
regularlize symbol_table/ns, add ns tests