I discovered how to make ExcellentShadow2 effect for MMD work with the edging or border effects on some models. You need to modify the actual shader code in order to fix it, but it is a simple change:
in full_ES.fx, lines 143/144, change AlphaBlendEnable and AlphaTestEnable to be "TRUE" instead of "FALSE", and/or in full_ES_pmx.fx, lines 146/147 do the same (depends on which effect you are applying to your model).
This is only tested with the standalone version of ExcellentShadow2. As far as I know, NCHL and some other bigger effects that contain ExcellentShadow have a sort of modified version of the effect to work with the rest of the ray-tracing and normal-mapping and whatnot. I haven't even tested if they have this bug or not.