It looks like
:SetFrameRef() is inherited from
SecureHandlerTemplate. This is the base template that the other handler templates inherit from and only uses an OnLoad script that assigns this function. You can add it to your inherit list yourself and it should work.
Code:
local protoGerm = CreateFrame("CheckButton", myName, parent, "SecureHandlerTemplate, SmallActionButtonTemplate, SecureActionButtonTemplate")