make DUP_X1 replacement more flexible to handle constants