Add a way to ignore functions in a serialized object

Executing member functions to retrieve value isn't always applicable. In order to change the behaviour, I've added an option to ignoreFunctions when calling the toXML method.