Add iteration support

Includes directional support and simple iteration.  Also implements `sphia_strdup` :)

Closes #32