Change typing of invariant() to return void

Reviewed By: @jwatzman, @elgenie

Differential Revision: D1617501
DynamicYield: do not provide get-via-yield

Summary: Do not implicitly define getFoo() methods when yieldFoo() is defined in a DynamicYield class.

Reviewed By: @elgenie

Differential Revision: D1610941