Generalizing EntrywiseMap function to better support recent Copy and Proxy extensions