basis.entity: implement basis.entity.resolve