Use the computed register size when requesting registers from host.
Fix a handful of warnings.