Add :hash type for attributes in categories.