added some TPointArray type functions as well