Generate toSLV and fromSL functions for datatypes nested in other datatypes