(WIP) ParserStack.calculate_and_clear_pushes_at_end() wraps the nondestructive version and updates ParserStack.committed
TODO: document the TopLevelParse api (GDBValue vs. int) TODO: remove redundant variables TODO: integration tests for TopLevelParse