Make expand_buffer() a non-inline function, so that we can add debug messages. Expandable buffers now don't *always* round up to the next power of two. This allows e.g. loading a 137MB ISO image on a machine with only 256MB RAM...
reflect the fact that they allocate and deallocate user memory (i.e. things reached through a userptr_t).