more work on subscript filters ... and fix a bug in accessing arrays by index