I noticed when restoring some cracked materia today that the macro is apparently broken when restoring more than one of a specific type. It doesn't prevent you from obtaining the correct amount, but this is what shows up in the chatlog: