Add array_indexof method

I was looking for a way to create associate arrays in your script. I was only missing a way to get the index of a particular key in one array and use that to find the value at that index in the other array.  
Not sure if you are interested in the change, but thought I would send it on. I am sure there is also a simpler way to do what I have here.

Thanks,
Andrew