Fix code generation when adding to pointers