Extended RuleStatementListener to extract multiple rule statements when
right-hand side uses multiple fact statements divided by commas.
Fixed minor error with query involving rules, in which if you used X as
variable in rule and used a separate variable P in query statement, it
would show X=atom rather than P=atom.