Fix custom checkbox when in different parent than label

I have project where checkbox and its label are needed to be in different containers,
this PR handles this case (didn't seem too out of everyday use :) )... and for radio inputs.