Ireland have beaten New Zealand for only the second time ever on the HSBC SVNS Series, triumphing 21-19 at Singapore's.