Workaround for issue #85

For some reason, package.loaded had userdata in it which we weren't expecting.
This occurs if the luasocket modules couldn't be loaded for some reason.
Show a warning if we have an unexpected data type
Merge pull request #96 from alanwoolley/persist-fix

Possible fix for Issue #85