Merging improvements from the NME fork of the format library

git-svn-id: http://hxformat.googlecode.com/svn/trunk@243 21d757a5-8d53-0410-89ca-7355cf17ce49
haxe3 fix

git-svn-id: http://hxformat.googlecode.com/svn/trunk@244 21d757a5-8d53-0410-89ca-7355cf17ce49
more haxe3 fixes

git-svn-id: http://hxformat.googlecode.com/svn/trunk@245 21d757a5-8d53-0410-89ca-7355cf17ce49
Minor patch

git-svn-id: http://hxformat.googlecode.com/svn/trunk@246 21d757a5-8d53-0410-89ca-7355cf17ce49