Fix for some uninitialized vars; allow drawing straight to arrays.
Static analysis fixes.