The issue was, in fact, related with the old FPC 2.6.x branch. I've downloaded the latest FPC trunk (27605 currently) and can now confirm - the problem's gone, everything works just fine. So the solution is simple - to upgrade the compiler to the latest version.