Move `attributes_before_type_cast` to `AttributeSet`

No, it should return a hash of the values before type casting.