Redmine#3442: added staged test in 10_files/templating/staging/array_expansion.cf
Redmine#5342: test non-filebased repo; fix partial package names and upgrades

Also addresses Redmine#2986 and Redmine#5245