Fix parseBool name and docstring. Other minor comment fixes.
Improve data type test assertions in API tests.