Export the ending line number for structural elements

Fixes #12