Bug fix for classloader issues when deserializing custom objects.