Added documentation about user defined types.
Added test for missing mod:fun() type declaration.
Added test and fixes for valid defaults in records.