Yes, that is the case. Modifying the elems directly in the codegen did feel a bit hackish, so it seems to me like the optimizer approach would be the correct way to do it, now I just have to figure out where the backend's optimizer is hiding....