Fix bug in void functions where type of argument can be mistaken for type of function