Functional law of the iterated logarithm and uniform central limit theorem for partial-sum processes indexed by sets