Split diffvars_impl.h out of system_impl.h, since most system routines won't want to know about diffvars.