Refactored for defunctionalized continuations
Added support for defunctionalizing delimcc style continuations