Adding optimizations for serialization of naming::name, naming::address, naming::locality, and actions::transfer_action