Mask of the Phantom Planet
I finally found how the layer masking changed in KSP 1.2.2 and released a new version that uses a better set of mask flags for the raytracing. This should get rid of the phantom hits onto imaginary objects and therefore I'm calling it v1.0.0 (the phantom hits were the thing that kept me from calling it 1.0 earlier).