issue #550: Make AQL graph functions support key in addition to id