Update code.

- attr_types is now a list, instead of map.