Emit warnings for underscored variables appearing twice in a pattern, closes #2480