fixes for cornice-sqla

Hi! I'm recently tried to use cornice-sqla with the latest versions of sqlalchemy, pyramid and cornice and for make it's working I add this changes.