change each to each_value; remove unused variables in bigdecimal lib

1. change each to each_value
2. remove unused variables from bigdecimal lib