When processing an array of elements, don't add any that are already included in the list.
Fix wrong error message for double exponents
Prevent use of id's in previews from confusing HTMLspanElement() calls.