Support long values when writing to the pipe

Previously any stat with a long value was silently dropped.