magit-format-commit: make %h format respect magit-sha1-abbrev-length
magit-refresh-status: use magit-format-commit for head summary