fix a couple small flisp memory bugs. fixes #4976

identified a few more using memdebug2, soon to be merged