Fixed bug in setGain() and added reference input type in MetaTaskDynPosture.gotoq()