Similar Items: A Functional Abstraction of Typed Invocation Contexts