Fix the envelopes property getter.

At some point the PDFCalculator.envelopes property ceased working.
This was fixed by using correct type in the getenvelopes helper.