Add some type information to field attributes