appendchild, insertBefore and replaceChild now also record the newly created element in the log, in addition to the parent. Model should concern the newly created element more, instead of the parent node. Also fixed a bug that multimap cannot be simply reduced to map, this loses many information.