Fixes where issue with hashed wheres and array values

Closes #111