Fix displaying instance of RawQuerySet in templates toolbar

Should fix iss #309