ioreg: write-only register fixes

This closes #139, #140 and #141.