Monkey patch array class