kxArray fixes and test