for dynamic generation, replace code with not set vars with an error

this can be restored to the old behaviour with

  [basic]
  error_not_defined=0