Add Statement::containsText()

Fixes #45