Small changes

- replace SmallVector with C array for type lists
- use AttrBuilder instead of Attribute(s)