ADD array support for some functions including p2w