Fix Access annotation of example and management agents
Introducing generic Type injection mechanism, used both for State and
RPC.