Make sure that decls are inserted in the correct declcontext.