Fix deprecation warnings.
Minor performance improvements for rb_server_variables. See #931.