Ignore quote type when comparing values. Fixes #1992