Ensure that the contrib object's type property is always set.