Fix minor docstring issues
Raise ValueError rather than return -1 in get_element_index

To be more consistent with list.index.
Allow element names to be used as indexes
Merge branch 'follow-up-fix'