support array indices in $set and $unset