The scaling of goals via homeostasis: an evolutionary simulation, experiment and analysis