Fix - single element arrays were being returned as objects instead of arrays