Well, I tried the fix for a pins on port B as well.
PIOB->PIO_ISR; // Clear status register
NVIC_ClearPendingIRQ(PIOB_IRQn); // Clear pending ISR
If the attachinterrupt() function knows the pin, maybe it could work out the port and apply the two commands ?