Add dynd::type_error, convert some errors from std::runtime_error