added more debug flags and fixed an error

added more debug flags and fixed an error in from_package_reloaded caused when two lua files attempt to define the same module namespace.

No rush -- it's a bug fix on one of the functions least likely to be used by end-users.