annotations - fix error when geom null

the vectorformats library encoder won't handle null geom, replace
w/ own implementation. make sure tests cover this case