Fix the equal function

It failed on comparison of string object with other string object or primitive.
Fixes https://github.com/applegrew/django-select2/issues/43