Properly update lists when scope changes

- Fix bug with improper position being set
- Fix moving between lists when you have an array as a scope
- Add tests