Add an Element companion object.

It has a factory method, elem, with 3 overloads, each providing a
different way to get at instances of an Element.