minor cleanup. Also get DX11 device creation working again.
Fix assert about alignment in buffer range for platforms with smaller alignment requirements. Also general claenup of the buffer range solution.