fix typo in util/django
improve the message in the exception thrown when an invalid type is passed to Array()