Fixes in calculations of serialization length for geo RDF objects