Declare types outside builtin module

Signed-off-by: Daniel Francis <francis@sugarlabs.org>