Check whether an array is associative for script arguments.
Use foreach to check associative arrays.
Merge pull request #133 from linguinee/master

Check whether an array is associative for script arguments.