Your issue is not with storage, it is with retrieval. get_post_custom()
is inconvenient and rarely used in practice.
get_post_meta()
is more common in practice. Note it has explicit argument to retrieve a single value, rather than array of values for a key (which WP can do too).