Remove in-place gsub for component indexing, works on EADs without xmlns attr; ref conditional