fix release build warnings about aliasing by using the real types and a memcpy in NiftiHeader::read