insert_state
inserted_state = insert_state(tree, prealloc, bits, changeset);
inserted_state = insert_state(tree, prealloc, bits, NULL);