Better fix for the rule attributes cache.

@dwightguth please review.
I'm copying the attributes from the StringSentence now, instead of taking them from the previous cached rule.