added support to persist arrays of base types into foreign collections