fix a memory corruption bug in flisp found by @jakebolewski in #7977

map was keeping pointers to the stack, where it was possible for the
stack to be reallocated and moved.