Backported fix from master.

the expression mm*j can in general not be represented as int, therefore
we need to convert each factor to double before multiplying them
Backported fix from master.

fix maturities for tn and sn quotes,
avoid generating too many quotes (and reading undefined array elements),
write 15 and 35 for the number of FRAs and Swaps entering the curve
throughout the code
Removed explicit typing from call to make_pair.

This prevents a compilation error on VC++ 2012.
Thanks to Ali Hassani for the fix.