Intepret boolean query params correctly.

fixes #393