Replaced CheckElementNames in Core with general IElementNameChecker.