The raw index buffer content is not guaranteed to be aligned

* Ensure alignment by copying the content into a structure on the stack
Fixed merge REUC test for big-endian 64-bit
Fixed odb foreach test failure for big-endian 64-bit
Silence uninitialized warning
Ensure patch is initialized to zero, otherwise, the allocated flag may be set
Silence unused return value warning