serialized Type should delegate `type_cast_for_write` to underlying Type

This adds a regression test for #14411, which was fixed by #15503.

Closes #14411
Closes #14595