[Form] Rewrite boolean attributes to match HTML spec

'The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.'

- http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attribute
[Form] Improved test coverage of widget_attributes and widget_container_attributes blocks