detect custom marshalling for type, Issue #96