Fix handling of bools

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>