Marlins' Straily, Mattingly ejected after trading HBPs with Giants