Move static Writer variables inside methods. If GML or GeoJSON jars are not available we should still be able to use a Layer.
Fix XML tests due to upstream GeoTools changes.