InverseDynamic: now base acceleration computation is local to the function and it does now overwrite input values