Set type added

WARNING! Is not tested as it needed. So, now need to write some large
test for events delivery, operations applying and host handshake.
Let's do it. Right now.