Adds check for statement references.
Merge pull request #466 from LearningLocker/issue/conformance-ryan2

Adds check for statement references.