arrayToDict extended