Use the GIN index wherever possible.
Fix type error on ARRAY assertion.