Hash, customReplace and matching fixes for haxe3
Removed lib
Updated tests for haxe3
Make haxe3 changes backwards compatable, change to dev dependencies