Vector.indexOf can search by id, spec, object