Doing a lookup on strokeWidth works fine UNLESS strokeWidth is zero; in that case the lookup returns a 1.
Also, strokeColor is undefined when strokeWidth is zero, so looking it up causes problems if you ever need to refer to it. This issue prevented me from morphing strokeColors in my morphing node. It would be better if strokeColor would just return 0 (black) when strokeWidth was zero.