Fix several ELF/PE/XBE and related tests to match latest changes in r2