Fixed issue #2736: stash list/ pop missing when refs are packed