Raise TypeError instead of ValueError if __all__ is not a concrete list object