smdb.py: fix test for if a datatype is known