Interrupts on DUE. Odd behaviour of attachinterrupt()

attachInterrupt is supposed to just attach an interrupt. Not futz around with I/O pins. It's the programmers responsibility to make sure the pins for an interrupt are configured correctly for the specific hardware that is attached to it.