Instance PathPiece Bool with test

I had to implement this for my website, issue Yesod https://github.com/yesodweb/yesod/issues/701