Updated to allow non-integer array keys.