I need to store an array of integers for configuration of a custom module - which of these is right?
For saving module config settings, I use variable_set() in conjunction with the system_settings_form() function. Just also note that it and its companion variable_get() do the serialize/unserialize for you, so, there is no need for you to be doing it.