Handle more cases for hasOwnProperty and arrays without _sortlen