Initial checkin of if_scope_lookup_var_template