Fixed goes_to_gw, is_from_gw and dr_is_gw so that they accept negative
gateway types ( to match all gw types)