Workaround F# compiler bugs and .Net/Mono tail call limitations.