GIRAPH-910: removing unnecessary boxing in some places in giraph-core (pavanka)