I doubt a creature swallowing another would be a willing target of that spell, but I would say the one being swallowed gets deposited in one of the squares unharmed. They aren't the target of the spell and shouldn't be affected. The transition from creature to statue needn't be continuous; it could just be a *poof*.