Add duplicates validation to array

Closes #401.

As suggested only works for literals (numbers and strings).
`for (var i = 0, il = value.length; i < il; ++i)`