Better error reporting for undeclared @XRMethods.