datatype.py: Exception: NotImplemented -> BadType + unittests