Fix parameter handling for exported methods.
Reorganize test files.
Support optional and named arguments in constructors.