Change extend to extends
Change more extends to extend
Add new DefineBlock test
Fix some bugs and get define_block and extend working in terse

I made a type with ClosingCompile, and there were some small issues, but
now the code works well and is passing tests.