Supplemental fix for issue 10567

Add helper function in druntime, same as opEquals case.