Create a new op instead of updating the buffer

The code was updating the buffer of a constop, which as of
5.20 is fatal to do.  Instead, we can generate a new const OP
in its place.