Merge pull request #330 from bezreyhan/check_for_null

transaction.addInput checks if sequence is NULL
tests: add test for null sequence number