Add element.h utility

This PR adds the `src/libreset/element.h` file, which is for dealing
with element types.

It defines the `rs_element` type as well as helper functions for
dealing with this type.

Requires #24 to be merged.
Simplifies #12.