Fix for construction of `any` from `const any&&` (refs #9215)