add array and pcre functions

Change-Id: I4781d4f0267365f12880bf121082e9cd3b984181