padded_ref() and context_ref() functions.
Ref initialization complete.  Basic tests passing.