[Client] Fixed major netcomm encoding error

Error caused values with the maximal unsigned value of 1, 2 and 4 byte values to be wrapped to 0.
[Nifty-Controls] Improved update performance of inventory slots