Add until function to AstFactory; fix ReturnType initialization issue for FunctionDefinitionNode

Related dynamo pull request: https://github.com/ikeough/Dynamo/pull/925