Added str.partition, support for comparing tuples of 2 or 3 items, and file.close().

With tests.

Also specified "Swift.Collection" as protocol for Set to avoid build error in Xcode. Specifically "'Collection' is ambiguous for type lookup in this context".