TSPHP-535 NullPointer when type for constant is missing
Added new version of common component which includes ITSPHPErrorAst
Exchanged TypeCheckerException with the more general TSPHPException