Check whether an array is associative for script arguments.

Solves #132. I used [this SO answer](http://stackoverflow.com/a/4254008/1282635) to check whether the array is associative. Wasn't quite sure on the Facebook coding standards for casting, though.