ActiveRecord::Store but with type definition