Minor fixes to the GPIO plugin.