fixes, end-to-end tests

@feiranwang why is this needed? Is the bug here or in the definition of fast_seqassign?