Aggregate arrays and streams into into key-value lookup objects