Implement optimization for A::const and function_exists, strlen, etc

replace self::const to const
replace A::const to const if A's definition is in the same script
inlined function_exists, extension_loaded, strlen if the operation is IS_CONST(string)