Minor ByteBuffer changes

Added a non const variant of to_vector.
Enabled put_array_s for constant fixed size arrays.