add a new php method 'serializeData', which allow you serialize a array to protobuffer string more faster