various huge fixes from [ticket:330], thanks to Lele Gaifax
various huge fixes from [ticket:330], thanks to Lele Gaifax

j5int/sqlalchemy,itkovian/sqlalchemy,276361270/sqlalchemy,WinterNis/sqlalchemy,epa/sqlalchemy,bootandy/sqlalchemy,robin900/sqlalchemy,davidjb/sqlalchemy,wujuguang/sqlalchemy,sandan/sqlalchemy,hsum/sqlalchemy,halfcrazy/sqlalchemy,graingert/sqlalchemy,alex/sqlalchemy,dstufft/sqlalchemy,epa/sqlalchemy,sandan/sqlalchemy,Cito/sqlalchemy,brianv0/sqlalchemy,wfxiang08/sqlalchemy,inspirehep/sqlalchemy,dstufft/sqlalchemy,robin900/sqlalchemy,Cito/sqlalchemy,276361270/sqlalchemy,bdupharm/sqlalchemy,WinterNis/sqlalchemy,elelianghh/sqlalchemy,olemis/sqlalchemy,Akrog/sqlalchemy,olemis/sqlalchemy,sqlalchemy/sqlalchemy,pdufour/sqlalchemy,j5int/sqlalchemy,halfcrazy/sqlalchemy,davidfraser/sqlalchemy,bdupharm/sqlalchemy,Cito/sqlalchemy,hsum/sqlalchemy,alex/sqlalchemy,inspirehep/sqlalchemy,graingert/sqlalchemy,brianv0/sqlalchemy,davidjb/sqlalchemy,monetate/sqlalchemy,wfxiang08/sqlalchemy,zzzeek/sqlalchemy,pdufour/sqlalchemy,EvaSDK/sqlalchemy,davidfraser/sqlalchemy,ThiefMaster/sqlalchemy,ThiefMaster/sqlalchemy,Akrog/sqlalchemy,monetate/sqlalchemy,bootandy/sqlalchemy,alex/sqlalchemy,wujuguang/sqlalchemy,elelianghh/sqlalchemy,EvaSDK/sqlalchemy,itkovian/sqlalchemy