Old query processor: fixed bug in comparing short and full class names to be case insensitive. Fixes #1975. Added test of this case.