Implements Extend for EnumSet and LruCache

Part of #18424