ahaggar-ast: improve parent component_ref logic

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>