fix: properly handle boolean attributes

Fixes #37
Closes #98