Added low-level array handling macros to factorize processing and avoid typos.
node_process_handshake_header(): fixed accounting of incoming G2 nodes.