call #apply_changes_from_converted_types before calculating the byte array (closes #349)