Allow server parameter to be an array or a string

Same work as the resolver module, with unit tests :)