Twig: faster ->set_atts

If the `->set_atts` method gets a single argument we can safely assume this is something that can be dereferenced like a `HASHREF`. This is faster than checking `ref()` or `->isa` on the first arg.