changing version type

Version is an alias to Int32 (was Int) to make it easier to use
statVersion directly. Also, Clientid is now an instance of Eq.