fix DbObjectDynamic::toArray method not handling for non-array values