Fix parsing dotted lists and functions with varargs