wmflib: make require_package() accept arrays

Change-Id: Ibdba56692201c946724db4acc98cef733edf6b47