trac 5816 - fix any_range requiring copyable elements.