Code cleanup of stack depth tracking. Replaced class with simple POD variable.
Use constant instead of magic number for AST recursion limit

[ci skip]