[cs] reapplied some commits from proletariatgames/haxe
[cs] from proletariatgames/haxe: fix crash when casting a null array
[cs] Fixed native properties on interfaces. Closes #2490
[java/cs] Fixed default values on constructors + non-hxgen classes. Closes #2570