Use config=Dict() instead of {} for Pkg.generate. Fixes #7855