Listview: Re-implement recursion limitation

Fixes gh-7644
Re gh-5680