@SerializeWith now functions better for types used as generic arguments.