Add a test case for an array ref bug
Fix the use of an undef value as an array ref
Merge pull request #2 from zdk/master

Fix bug where permissions issue would cause a fatal error.