add support & tests for layouts when views value is an array