Hi! This isn't an answer yet, just some clarifying questions:
Are you working on using the "Make Magnet" example to make magnets that are created with scripts in them that use things like rect.overlaps and rect.constrain from the same example deck?
And did you want to make it so that only some of them do something when they're overlapping, and others don't? (based on some condition, or your mention of a whitelist).
Actually if you could give a specific description of what you're trying to do then I think we could help make sure you have all of the pieces of it that you need.