Fix for changes in Swift syntax

This fixes the Swift cheat sheet for changes in Array, open-ended interval, and Dictionary. Also improves whitespace and uses `let` wherever appropriate.