Combine warnings for items of same class

Resolves #9