Fixed haxe 3.1 issue with Compiler.keep, added tests for macro