fix script constructor array check
Add tests to transaction deserialization

lock_time -> locktime