Fixed up compileArgs to use AstFunction

Instead of trying to build a function piecemeal