TEIID-3248 TEIID-3249 TEIID-1091 various sql/xml enhancements/fixes