When serializing collection make sure to use actual collection type when using generics