[Olena-patches] 557: Provide two versions of type_of_: an ``exact'' one and a ``direct'' one.