optimize symtable since it is a mutable object only used by internal
fix array release
fix array memory management on slice-set