Aren't you just re-inventing TypeTuple?

foreach (i; TypeTuple!(1, 4))
{
    ...