Fix state corruption in the constant inliner