resolve compound definitions before checking for (equal) repeating definitions. This otherwise fails because one will be expanded, while the other isn't yet