fixed issue with class namespace setting root package incorrectly if a module is passed into the descriptor