Preserve command line arguments in ViewClient.connectToDevice()

- dump.py: shift args
- check for window ID in window parameter comparison
- added testList()