fix bug in _add_sequence that only returned last result
Merge branch 'master' into sqlalchemy