Replaced all calls to the toRaw() method call for swift enums with rawValue to conform to the XCode 6.1 changes