Fix issues with ownership macros ('__weak', etc.). Make class var types act more like typedefs.