enhance Haxe3 compatibility(remove redundant inline, turn Hash into Map)