intmap: reimplement so that intmap_after works.