Use int in C stubs for set/get.
Fix typo.