[distance] fix names/capitalization/style of typedefs inside classes;