Oil money doesn’t always stay in Alaska. This loophole explains why.