simplified conversion of lists and other alg. types to json further