typo fixes

while doing a deployment of ripple-rest, I found these typos that resulted in some bugs with payments processing. I've fixed them and ran the tests to ensure they're not breaking anything.