add some type equality functions for elements.