normalize attr types in messages