Fixed environ's dumpScope method to dump declarations in the same order the user declared them.

This fixes a problem that arises when a declaration shadows a package name.