Fathoming the anisotropic magnetoelasticity and magnetocaloric effect in GdNi