Adding comparison of arrays
Handling variable substitution in array values