native_code: change Potential to BasePotential
move potentialfunction.h to include/