Added list insertion for generic types