RenderUnit: fix error with rendering some buffers

correctly handle when vertex buffer objects data has other then 4 components (e.g. UV coordinates)