Adds toString to list constructs.