sys/param.h cleanup, mostly using MINIMUM() and <limits.h>ok dtucker
adapt to bignum1 API removal and bignum2 API change
unit tests for new buffer API; including basic fuzz testing