modified type generation for TS lists, sets & maps