[buffer] Set last element of QTypedArrayData<char> to zero

I am not sure if that is actually needed.
[module, buffer] Move DEFINE_OBJECT_VTABLE to file top

That is supposed to improve the code readability.