Similar Items: From nominal to higher-order rewriting and back again