fix current() and add Iterator
fix performance
add test
Merge branch 'hotfix/#6242-stdlib/PriorityList/fixCurrentAndIterator' into develop

Close #6242