undef functions don't have arity and location.
Move reporting functions to separate module.