Attached is a slightly better patch. The option is tested at the level of the mapcar, not within the function arg to mapcar. Also, the doc string of the new option mentions that the option applies only to a Imenu menu, not also to the use of command `imenu', which uses `completing-read'. The patched version of imenu.el is also attached.