fixing bug in box and point serialization buffer sizes