Better 'not a function' error hints