allow collection constructor to accept arrays