add schema wrapping for Pig 0.10 onwards