Adding 'create_array' optimizer