FIX: when inserting a node, the new node becomes a non-leaf and its required to call nodeTypeChanged