Add attributes to type/module definition