Added NSObject propertyNames and asDictionary methods to convert objects to dictionaries automatically.