error on internalisze/externalize with wrong type
externalize wrappers for pointers to named types (closes #47 and 49)