added support for local symbols.

Local symbol names need to start with a dot ('.') and are scoped to the last global symbol. Trying
to define a local symbol without a preceeding global symbol will trigger an error
size and location of internal frames is now remembered and restored correctly.