render true boolean attributes without value

See #266, #149 and #420

Please comment if you see cases where this leads to problems!