XmlSerializer crashing iOS builds in Unity 5

Our game ran fine with Unity 4.x, but seems to have runtime issues on Unity 5.x. Get this exception during run-time with a build using 5.1.2p3 and 5.2.0f3:

It failed at this line of code:

XmlSerializer serializer = new XmlSerializer(aObject.GetType());

Attached a screenshot of my build settings. I think this might be an IL2CPP issue?

Turns out having it set to .NET 2.0 Subset fixed the issue.