Fix arrays names when doing arithmetic

Fixes #254.