Fix return type of NSTreeNode representedObject - should be NSObject

This fixes bug 13771

As per: https://developer.apple.com/library/mac/documentation/cocoa/reference/NSTreeNode_class/Introduction/Introduction.html#//apple_ref/occ/instm/NSTreeNode/representedObject