Remove use of RefCell in Buffer, then throughout Iota.

Instead, we use static checking borrow checking throughout.