Fix GROOVY-6597: Don't use URL.equals and let URLs get onto URLClassLoader's classpath.