Implement RDD lazy transforms for scanLeft and scan