delete namespace detail in math and typeCast

The old version to cover functor classes in a detail namespace were a design mistake. There are a lot of feature  were we need the direct access to the functor class and not to the static function.