Giants extend Casilla after shaky 2012