cppbc: fixed mishandling of handle self-assignments and variable != op