improve subtypes() to look at parameters and exclude aliases. fixes #7443