This allows dependent projects to catch errors parsing glifs without
requiring logic to account for which XML library fonttools is using
internally (e.g. for implementing fonttools/ufoLib2#264).
This commit also adds tests to ensure that the exception we expose when
glifs have invalid syntax remains stable across future releases.