[transforms] Fixed 2 bugs: unused option and incorrect associative and commutative rule search algorithm