Beginning to port double-reference commons.

Also found some unaccessed code.