Change usage of boost::any to avoid strange bug on Clang/GCC. See #236.