librustc: Don't create &[T] slices with NULL as the ptr.
Add tests for null pointer opt.