anArray() validator

Added a new validator to check if a given variable is an array.