Change Ref parsing to all be done up front. Add default stack
references.