Whenever you do an anova with a numeric predictor variable, the df for
that variable will be 1 because all it is doing is fitting a linear
slope across the levels of that variable. In contrast, when you
artificially turn a numeric variable into a factor, the df will be as
for any categorical variable, the number of levels minus 1.
Treating the numeric predictor variable as properly numeric will yield
greatest power to detect linear effects, but will have low power to
detect non-linear effects. Artificially turning the variable into a
factor will yield better power to detect non-linear effects, but this
will still be mediocre and your power to detect linear effects will
also be rather mediocre.
This annoying trade-off is why I have come to love generalized
additive modelling (GAM), which has excellent power to detect both
linear and non-linear effects. In ez, GAM is implemented in the dev
version (https://github.com/mike-lawrence/ez#readme) of the ezMixed
function, where it can compute a generalized additive mixed effects
model when you have a random effect (e.g. subjects) to account for.
Mike