extensions can't be anything except reference head, move tralloc_add_refrence to tralloc_reference