Made utilities.decode_complex more general (can set one or both field names manually).