Functions

Translation of functions from AST to SAST is now working.  
I just noticed you were talking about `args_to_type not add_to_scope, I can make the change then