fixing bug in sugar that would not add parentheses to function calls at the end of a file
closes gh-41