Automatically link custom types based on 'links' hash