Make the marshaller more resilient to referencefields in listfields and dictfields