change behaviour of gt_feature_node_remove_leaf(), add to API

Closes #19.