Added error message on adding too many ticks to an axis. Closes #2174.