Fix to memory errors signalled by valgrind in flann::any. 

Changes to any to prevent the const version of cast signalling memory errors via valgrind. Addresses #111.