Add Element::attribute to define typed attributes