A macro-based solution for automatic singleton management in Haxe.