Fix block_given? in block nested inside def (#fixes 148)