optimization for 'foo[idx] = var'
more tests
bugfixes and cleanups