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