add tests for regexp type and nested array