Add impl of Compile for extern fns too
Fix tests by making `as_builder` safe
Add support for compiling tuples and fix tests