Add Element type accessor.

In case you need to know the type at some index.
Added IsTuple helper provided by Christian Oberholzer.