convert to use direct table index via [] and string

this way, we do not need to search and replace symbol chars to ensure a
valid Lua identifier.

Namespaces still use this Lua conversion to cache nested the tables that
comprised of the namespace.

Also, conver to use tab as it is shorter bytewise.