Encode WFS 2.0 Query aliases properly, omit aliases and typeNames altogether if zero elements available.