fixes Issue #221
we now check that the kind of a flow implementation is consistent with
the kind of he flow spec