feat(database): improve pg array conversion (refs #2761)
Merge pull request #1067 from Eric-Brison/3.3-E2761

feat(database): improve pg array conversion (fixes #2761)