Ignore constants in `scanvars`.

Again, these are not variables, so nobody would notice if they were added to the respective map on-the-fly, not when creating a `Code` object.