Removed the use of b.array() to support DirectBuffers and other fixes.

Removed the use of b.array() to support DirectBuffers. 
Removed Table and Builder extend Constants. 
Fixed endless loop that could happen with existing buffer with a capacity of zero.