fix valueOf for list and collection