Fixed logging of composite objects.