A small refactor to prevent valid (but safe in our case) type punning aliasing warning on gcc 4.1.2.
Added a few comments.