Correct handling of object as first child for xml generation. New tests for contact.