assert that each middleware is a gen fun

closes #12
1.0.8