fix takeViaUnfold - decrease n and don't initialize tail for last taken element