Robot: fix bug in getLinks(), getJoints()

was returning a map instead of a reference to a map.