Replace SmallVector/vector with C array for type lists
Use AttrBuilder for LLVM >= 3.2.

Due to a misunderstanding of the new semantics of the Attribute(s) class,
this class was used in places where class AttrBuilder should be used.
Merge pull request #278 from redstar/maint

Small changes