port most arb_const_ methods