fix(input): detect changes in array when its values are changed

When model value is an array, its values must be stored in a new array
to allow a comparison between old and new values when checking
if a value is out of sync with the model.

Closes #1751