Take Scripted Prim Fix

http://mantis.aurora-sim.org/view.php?id=1335

Hi Rev. This is a fix for the script state save problem i was having. The scripts state was not updated because the object was removed from world before being taken to inventory. This stopped the variables being updated. The actual state save was working fine with protobuf or xml. Im not sure why you didnt see the same effect unless you where taking a copy and leaving the object in world. Any ideas?