throw error when input to script constructor is not an array

[#58]
fix transaction serialization/deserialization

[closes #58]