Move script local_data_pop out of dtor

Fixes #570, which was caused by a second reentrant call to the dtor.
Bump layout data ref count in unsafe_set_layout_data

We need this or else we double-free the layout data box and crash.
auto merge of #608 : kmcallister/servo/script-exit, r=metajack