Fix code generation in Nyanga for dual index references