Added setLegacy(true) to GML2 Encoding

I'm not sure when it changed, but in version 10-RC2 the GML class requires a "legacy" flag to be set to true before encoding features to GML2.

I've added code to set the flag to true, at least for the "full example"