[cs] fix usage of StringMap.get in haxe.Resource so it doesn't get removed by DCE