Implemented encode_element_size and write_element_size, and added tests. This should...