Fixed #21765 -- Added support for comparing Context instances

From django-spring (Kraków)