Fix a bug storing array attribute types.