Use upvar in list management procs
Use upvar in list management procs

This replaces some unnecessarily complicated use of uplevel.

danchr/macports-base,neverpanic/macports-base,macports/macports-base,macports/macports-base,danchr/macports-base,neverpanic/macports-base