Minor fix according to refactor in ProgramGrounder e RuleFactory
Added missing include in IdsManager