#2119 Add IndexFeatures to CustomKernel

@karlnapf I add  IndexFeatures to CustomKernel::init and add a unit test here.