Sequence.take() should not take more elements than it needs to