Moment creation with array of string now works properly

Fixes #1870.