Add bool type, fix function introspection.