Move `type_cast_for_write` behavior over to the serialized type object
Merge pull request #15412 from sgrif/sg-serialized-type-cast-for-write

Move `type_cast_for_write` behavior over to the serialized type object
Don't reference comments that do not exist
Merge pull request #15413 from sgrif/sg-i-wish-i-could

Don't reference comments that do not exist
Generated engines don't include bin/rake, fixes #15409 [ci skip]