policy: add extra debug to ifcondition functions

NI_LOG_DEBUG2 lvelel needed to enable it.
ifcondition: Fix <child> handling

Handle <child> the same way as <and>.