This pull request adds several tests to the script_invalid.json data which exercise some edge conditions that are not currently being tested.
These are mainly being added to cover several cases a branch coverage analysis of btcd showed are not already being covered, but given more tests of edge conditions are always a good thing, I'm contributing them upstream.