I created copy of given metrics inside loop that you already do with aliases, to avoid issue that causes original metrics object to be affected by shallow copy. Reference issue #68
Although I am not sure if it was intended in first place for metrics to lose name in this process or is it just mistake that you check if metrics still have name even though aliases were already applied.
This is just suggestion that fixed issue for me, please feel free to create changes yourself and remove this PR.
I created copy of given metrics inside loop that you already do with aliases, to avoid issue that causes original metrics object to be affected by shallow copy. Reference issue #68
Although I am not sure if it was intended in first place for metrics to lose name in this process or is it just mistake that you check if metrics still have name even though aliases were already applied.
This is just suggestion that fixed issue for me, please feel free to create changes yourself and remove this PR.