fixing SerializeToFile data store provider to work with nullable types