Implement rpacket_t status field, enforce structured programming in montecarlo_one_packet_loop