Don't use hasChanges outside of a performBlock on non-confinement type contexts
Updates to logging within the shorthand generation script
Ensure that Foundation.framework is imported before checking `NS_BLOCKS_AVAILABLE`

Fixes #786