Fix SDL_surface refcount test and initialise refcount to 1