Minor style changes
Refactor validation logic
Reset before_type_cast value after successful save

It fixes issue GH-102.
Let us use focus on specific tests