Support boolean attributes, related issue #170