Fixed an error in saving macros to an xml file.
Small changes to how the symbol table handled metadata.