Validate array params against values

This PR is an attempt to address issue #823. The code ensures that the acceptable values meet coercion of the array type, and then validates that passed in params are contained in the acceptable values list.