Use type reflection to deserialize parameterized classes