xls: fix roundtrip of xls macros.