[BUG #7486] avoid optimizing non-literal maps altogether