more apr_uint32_t usage where appropriate, signed/unsigned warning detox, stream reset clears buffers immediately