Adding serialise method to net_addr and const-corrected everything