Add static API_TYPE to generated types (fixes #152)