SequenceGenerator/AttentionTransition middleware now works

Add a test for the SequenceGenerator which covers the case
when an attention transition is assembled from an attention mechanism
and a recurrent transition.