TEIID-2760, TEIID-1070: fixing various issues with SimpleDB translator