Improve operation normalization handling.

BigDecimals have a function to strip trailing zeros.
Also the matcher's appendReplacement works good in this case.