Update util.lua

indexof should handle non integer keys/indexes too...