types: Add null delegate tests.