Fixed wrong type and added missing type on parameter with default value

This change makes it possible to compile Haxe code that includes ButtonHelper.hx.