Fix arctan and add math test
Add 'wc.pas' example and fix many small issues (passing record types for example)