[mcs] Extend possible unintended reference comparison check
Fixes build