Added array code to dsPIC, but it's untested.