fix equals method for anonymous classes
fix ceylon/ceylon-js#405