Remove trailing comma in define array. Close gh-1336.