Allow begin...end blocks to be used as expressions (fixes #147)