core: Move header field generation hooks around so that parser fields are generated before core.
core: Move remaining field generation hooks around so that parser fields are generated before core.
Fixed a couple cases in which clang 3.3 optimized out a zero-byte buffer