Deal with present but undefined options.size
Convert options.sources to an int and default it
Fully normalize URLs so string and object forms match