[fix] very important fix of two issues visible only under heavy load

1) messages glued together made parser to calculate the size of the payload wrong
2) wrong yielding type from the remain_length calculation