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:
http://cdn.guildwork.net/albums/imag...72dc7d4445.jpg