Implement modulus and fix array expressions