Fix MML->JSON parser, change all "&" to "-" (in ID and IDREFs too)

[#56422564]

It was causing problems with gradients idfres, where $ was used.