PIG-3110: pig corrupts chararrays with trailing whitespace when converting them to long

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1459098 13f79535-47bb-0310-9956-ffa450edef68
PIG-3249: Pig startup script prints out a wrong version of hadoop when using fat jar

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1459104 13f79535-47bb-0310-9956-ffa450edef68