Add #begin and #end methods on MatchData.