languages: Fix some soft type hints in the Language class