Properly set class when mixing keyword and map class definition.
Do not override existing class when using var-attrs.