I just came across this problem today, so almost 10 years later this is still a problem! I fixed it by doing something sort of like what was suggested but putting the my keyframes in I believe would be called the “argument” of the expression aka Math.round( ‘Pick wipe the animated effect perimeter’)
Math.round(effect("3D Stroke")("End"))