Make get_details work for objects with C routine extensions

Fixes #27