Fix some bugs with sentence and nanopub objects