Fix #162; check if an argument is a function