Revised how the nameless element name inferring works, still not
complete.