Changes to any to prevent the const version of cast signalling memory errors via valgrind.
Merge pull request #115 from d40cht/master

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