Fix HDL generation for empty kernels.
Support 'all' in external.
Fix handling of ANY_KERNEL.