Test copy-by-value semantics a bit more thoroughly.