Work around Swift compiler issues by changing statement() to return a (Statement, InputPosition)? rather than just (Statement, Position). This seems to fix the problem with IF statement parsing causing crashes.