Threw the correct exception when the generic type definition 'List<>' was requeted.