replaced functional implementation of dropUnsafe by procedural one because the functional one causes StackOverflows for larger sequences