[DROOLS-44] when collecting declarations for a given scope skip the ones coming from an OR branch