simplify data (e.g. for writing to json or yaml)
This function for instance turns sets and numpy arrays into lists.