Pig UDF to convert a Map to a Tuple