convert bool to int, so d only contains number values - fixes #145
Merge pull request #146 from dotnetCarpenter/patharray

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