terms.to-patterns adds data from a wrong dataset

Thanks for the report and sorry about that – this is very strange! It's likely related to the issue reported on this thread so I'm copying over my response from there: