Disambiguation of get_locality_id
Adding serialize_buffer wrapper class