Fixed get_list_type and added tests for it
The JSON encoder is finished except for a bug that it only actually serializes the first phone for a pair of entries