Added stream serialization logic for new min/max file descriptors

Relates to #4681