RecordMacros.hx fixes

full fix for: https://github.com/HaxeFoundation/haxe/issues/2965
and one fix for: https://github.com/HaxeFoundation/haxe/issues/2966 but their maybe some other place to fix for that? it diserves a full check.

Sorry i only want to pull request the RecordMacros.hx commit, but i d'ont manage to get it separated with Github...

Seb