use deserializer for parsing script.
we now use the end_of_stream exception, not script::empty() for script deserial.