support for arrays and type is now attr in filter