Move isConstantString() from XHPAST linter to XHPAST node

Summary: D4744

Test Plan: This diff.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4747