Fix checking for IOBase, and also set flash_addr. Fix handling of Descriptors