Add support for swift types to Attribute

Uses `bridgeToObjectiveC<T>(x: T) -> AnyObject?` to allow for swift types.

Changed the Attribute tests to use `Int` to test it works correctly.