Collects all parametric occurrences and the construction of keyed_accounts and puts them into InvokeContext.