Save dtypes to YAML (now we only drop ndarrays).