Fix for Haxe3 pattern matching