Add more sensible error messages for unknown attribute/parameter/routine traits

Need access to $*W and $/ to make the messages really come out right.