Treat integer indexed attributes as boolean attributes

Related to #2566

Just to avoid invalid html markup like:

```html
<input name="name" 0="readonly" />
```

It's not supposed to encourage people to use ['readonly'] insteadof ['readonly' => true].