more fixes and performance improvements

fix truncations with the As family of methods; more performance
improvements with BigFloat and DecimalFraction; more test cases; improve
BEncoding map serialization, and so on