Converted lists of annotations and categories to arrays