convert bool to int, so d only contains number values - fixes #145

The bug is explained in  #145
See also: https://github.com/otm/svg.path.js/issues/6