Use JoinTypes-method

Change from joining Types (as typemarker) to use the JoinTypes-method

Issue #399