Better validation errors for functions, and fix fns with no names