Add preliminary primop support for RC.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Improve load thread code generation.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Explicitly pass gwt around, reduces memory references.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>