[mcs] Report ambiguity in attribute types in expanded mode. Fixes #16342