Fixed duplicate variable declaration.
Added test for ZMQ_CONNECT_RID
Updated man entries, and added behavior in case the user duplicates peer ids.  In this case the socket reverts to default behavior.
Merge pull request #841 from Prarrot/master

ZMQ_CONNECT_RID tests and man