Added Dictionary.toArray method