Fix a bug when the coupon rate is very near 0

Original implementation of sinkingNotionals will raise singularity when coupon is very near 0. I suggest to add some threshold check on the coupon rate and when it is low change to limitation case.
I  agree with you. The denominator should be nPeriods. Besides I'll try to write down some tests for this function.