trafgen: move precheck after packets are compiled