Fix API doc errors in GFX.   g.TextPath was not defined because path.js wasn't getting pulled in.  Fixes #16937 !strict.
fix misformatted doc from [30924], refs #16178 !strict