stash: add STASH_LIST() and rename internal variables

Found out the hard way by Masoud.  Thanks for catching this.