H. G. Muller wrote on Tue, Feb 21, 2012 11:22 AM UTC:
Indeed, this seems a case where the Fairy-Max implementation would not give the most logical ruling: it would forbid the castling.
But OTOH, one guess is as good as another. The rules should really specify exactly what to be done, in variants where cases like this can occur.