Fixed doc and register preserving for readOption_bool