Bump upper bounds for tests
Various fixes for 7.8.2
Make portable implementations of forwardSearch2 and forwardSearch3 match C implementations. This fixes #13.