Swift 1.1B2: use rawValue property and constructor for enums