Add more empty type tests and fix a codegen warning.