-Fixed building of term fields in the form generator (Legacy code still
uses AttributeReferenceDTO instead of AttributeTermDTO.  So casting to
an AttributeTermDTO causes a ClassCastException)
-Added support for sorting on AttributeLocal.localize() function through
the QueryTranslations API