Added method to ElementRt that allows adding a child to self, or to reuse self if they are of the same type (e.g., to avoid nested :em elements)
Patch Kramdown::Element with method #is_of_same_type_as? for merging of elements.