Bugfix that might have called ref( undef ).
Doc fixups.