fixes #127 Add a class for scoped mallocs, which are satisfied from a
thread-local buffer when possible.