Listview: Re-implement recursion limitation

Closes gh-7646
Fixes gh-7644
Re gh-5680