test: add more codegen tests, add copyright headers to all.
auto merge of #8165 : graydon/rust/2013-07-31-new-codegen-tests, r=brson

r? @pcwalton or someone