[PATCH] src: Fix return types of .stateInitialize callbacks