Re https://github.com/KanjiVG/kanjivg/issues/64

Re https://github.com/KanjiVG/kanjivg/issues/64, this fixes some of the problems, but it does not resolve the kvg:type mismatches.