SI-9047: Extract attributes from multiple elements

Ensure that `\ "@attr"` works as expected when the `NodeSeq` has more than a single element in it. Make the existing implementation more general and remove the one-element special case.
Instead of `x map (y => { ... })` you can `x map { y => ... }`.