allow null elements in iterables, fix for generation