Make Collections encodable without chaning the source objects.