Fix a bug in ComplexResourceKey.equals().