[cs] use haxe instead of @:functionCode for Reflect.compare