Add scopes to Fortran prototype name parsing.