Possible issues with the postHook snippet:
It needs to be above the register snippet on the page
It needs to be spelled correctly
It needs to be specified before any other postHooks
The Register form's submit button has to have name="loginRegisterBtn" and value="Register", unless you change the snippet code.
Checkboxes are always a pain and it always takes me several tries to get them right. As long as they name is the same as the extra user field and that name is a key in the $_POST, they should work. Adding this line to the top of the snippet might help you diagnose the problem:
echo '<p>' . print_r($_POST, true) . '</p>';
The post will be empty when the form first loads, but should be filled in when the form is submitted (assuming that you're not forwarding the user somewhere).
If it doesn't show up, use this instead and look in the error log:
$modx->log(modX::LOG_LEVEL_ERROR, print_r($_POST, true));
You can also uncomment lines 113 and 114 in the snippet to see if it's saving the user (look in the error log). You can put similar lines in other parts of the snippet (like at the top, to see if it's executing at all).