make legendre gf factory consistent with imtime

changed order of arguments in factory make_gf for gf<legendre> to
make it consistent with the corresponding factories for imfreq and
imtime