fix deprecation message for rules, decls & list.