Tail recursion optimization
Added autogenerated tests to test that all tail recursions has been detected properly