Add calcpi.pas original file
Various minor updates.

- Write error for empty records, and take variant into account.
- Make generic code for type conversion.
- Don't print content of pointer types, just the name of the type.