Update how we store attribute data

These changes allow for easier restoration of stack
information from cached json serializations.