[dml-code-generator] Always cast parametric types on ValueTypeSerializer