Defaultize before_type_cast for basic and localized attributes