Fix bug in setVelRef on iCub simulator

Since the new IVelocityControl2 interface is not implemented yet for the
simulator, use the old interface if the robot's name is icubSim.
Clean code and add comments