AsmParser: Save and restore the parsing state for types using SlotMapping.