fixed tms transition correctly, moving change state into jtagSendAndReceiveBits.
also fixed sramtest, which was how i disovered the previous bug...