Cleanup C library and allow it to handle List(U8)->List(U16)