Revert "Revert "FlxFSM compile fix""

This reverts commit 2898cfcb3f91560e0ea99d7d2a3aa625e6e093e0.
Revert "Initial stack implementation, buggy"

This reverts commit b63af16cad19e8d4214229e0da0316f1cfdd031f.