spec: allow passing Typelib type objects to define operations (closes #13)

...3)