RUBY-239 Raise ArgumentError when bad options are passed to connection constructors
RUBY-410 Refactor ReplSetConnection#setup to avoid code repetition