fix arraypad
adding main to run tests
Merge pull request #616 from adamw523/2013

Fix util module.