Fix compiliation bug and implements unmarshal primitive type operation of OctetsStream.