I was able to apply my mod, randomportraits, fine.
However, modification of var is still broken. Better regex i recommend is in there, but the code for AddTo is still broken, it's got .replacen("{", "").replacen("}", "") still so it breaks any nested {}'s by stripping them. This was broken in other versions in various ways though so i don't know anything new that is broken?