mod_storage_internal: making open function signature match mod_storage_sql
mod_storage_sql: explicit checking for keyval type