Fix more types in realms.c