C/Python KeyList.from_raw should return same types