`attributes` bug fixes

- #attributes() now expects an optional hash instead of *args
- if view is not a Nokogiri::XML::Element and only has one child, set
the attribute on that child