Plugin for tuple serialization

Nathan, enclosed please find the proposed change for tuple serialization as discussed at issue #393. Please review.