Encoding Lists with Lengths by Type Family