pyldb: do type checking on the list form of ldb add