[graphspell][js] dawg: convert Map to Object when exporting to JSON