more consistent attributes - non string/number values are always treated...

... as boolean attributes (fixes #878)