Fix big endian issue with cardtable and add code for mono_arch_context_get_int_reg