[mcs] nameof implementation rewrite to match the latest spec