Remove redundancy when defining type casts for attributes

Attributes may be defined in options[:fields] hash
with attribute names as keys and types as values