Fix for typeof NaN === number
Merge branch 'develop' of https://github.com/ripple/ripple-lib into develop