Bugfix in index calculations for array ops.
Bugfixes in fusion