Importance of torsion and invariant volumes in Palatini theories of gravity