In the trampoline, each chunk switches on a passed value now, instead of a global variable, hopefully improving runtime.
Removed extraneous field layedOut, fixed two functions being unnecessarily mutally recursive.
C trampolining cleaned up, extraneous while loop removed.