Fix NSDocumentChangeType

As per https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocument_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSDocumentChangeType
Merge pull request #120 from rzhw/patch-1

Fix NSDocumentChangeType