add regexp type as a possible array element in the function "member"
add tests for regexp type and nested array