flatten arguments to singleton_packages()

fixes an issue where singleton_packages() may be called with an empty
array and attempt to declare Package[singleton_package_]
Merge pull request #2 from jenrzzz/flatten_pkg_args

flatten arguments to singleton_packages()