[gambit-list] Fix expansion of map and foreach