Remove lexical_cast, add polymorphic_cast.hpp, minor fixes