More complete namespace / declcontext support for records etc