Fix writing alias rules
write_pair() ignored the 'tail' parameter, which resulted in writing invalid alias rules (without the trailing comma).
Also add an alias to test/cleanprof.* to ensure it doesn't break again.
I propose this patch for 2.9..master, and once more wonder why nobody noticed this ;-) (if the test/cleanprof.* change doesn't apply, I'll only backport the aa.py fix)