Switch to the correct declcontext before entering a record definition.