Inproc transport check whether two conneceting socket are compatible

'separation' test is also added to check the functionality.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>