Fix string & null formatters in beaver.transport

the inline definitions were expecting a self parameter, which is *not*
passed when you assign a function to an attribute on an object instance.