Errors and buffers: essays in the economics of syntactic rearrangement