Fixed macro implementation

In Haxe 2.10, setup with macro is failed.

Fixed it in order to modify EFunction definition.

And in testEmptyObject for js, since mock.object.length and mock.object.date is returned function type, fixed isnull to notnull.