Systematic effects on the size–luminosity relations of early- and late-type galaxies: dependence on model fitting and morphology