rework construction and validation
Brought to you by:
pabigot
Since we can tell the correct binding type for a document element without consulting the content model, g'head and convert it once rather than multiple times while attempting to match a transition in the DFA.
See also #19.
Fixed in [1473]: complex type append converts DOM nodes into appropriate value if possible, passes value and translating element use into content model.