Add simplelayout support for references in context state.

The context state now also checks all simplelayout blocks
which have no workflow for references and merges them.

@maethu 
/cc @elioschmutz