(1) Upon a contract made with the public corporation.
(2) Upon a liability prescribed by law in favor of the public corporation.
(3) To recover a penalty or forfeiture given to the public corporation.
(4) To recover damages for injury to the corporate rights or property of the public corporation.