Fix crash when passing blocks to expect()
Merge pull request #23 from chrisdevereux/master

Fixes crash when passing a block to expect()