BUG-832 Fix deserialization of identity-ref leaves

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>