Change block detection

Fixed a bug where object_getClass(^{}) failed to detect some blocks
Merge pull request #1 from cboden/block-fix

Change block detection