Extended error message in addProduction
Removed is_defined check from MATCH_TYPED_VAR