Small tweaks to APDUHandlerBase to increase flexibility