CORE-1336 AutoIncrement not working with some types