dummify: Add functions to detect main and interaction effects