Moved append-xexpr to typed-xml so it can be used everywhere.